<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>人工智能视觉算法模块 - 主页</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <style>
        body {
            margin: 0;
            font-family: "Microsoft YaHei", sans-serif;
            background: #f8f9fa;
        }
        
        .header {
            background: #fff;
            padding: 15px 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
        }
        
        .header h1 {
            margin: 0;
            color: #2c3e50;
            font-size: 20px;
        }
        
        .main-container {
            display: flex;
            height: calc(100vh - 60px);
            margin-top: 60px;
        }
        
        .sidebar {
            width: 250px;
            background: #2c3e50;
            color: #fff;
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 60px;
            bottom: 0;
        }
        
        .sidebar-header {
            padding: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .sidebar-header h3 {
            margin: 0;
            font-size: 16px;
            color: rgba(255,255,255,0.7);
        }
        
        .nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
            flex: 1;
        }
        
        .nav-list li a {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: all 0.3s;
            border-left: 3px solid transparent;
        }
        
        .nav-list li a:hover {
            background: rgba(255,255,255,0.1);
            color: #fff;
            border-left-color: #3498db;
        }
        
        .nav-list li a i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }
        
        .sidebar-footer {
            padding: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        .logout-btn {
            display: flex;
            align-items: center;
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .logout-btn:hover {
            color: #fff;
        }
        
        .logout-btn i {
            margin-right: 10px;
        }
        
        .content {
            flex: 1;
            margin-left: 250px;
            padding: 20px;
        }
        
        .content iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>人工智能视觉算法模块</h1>
    </div>
    <div class="main-container">
        <div class="sidebar">
            <div class="sidebar-header">
                <h3>功能导航</h3>
            </div>
            <ul class="nav-list">
                <li>
                    <a href="{{ url_for('main.welcome') }}" target="contentFrame">
                        <i class="fas fa-home"></i>
                        主页
                    </a>
                </li>
                <li>
                    <a href="/classification" target="contentFrame">
                        <i class="fas fa-image"></i>
                        通用物体和场景识别
                    </a>
                </li>
                <li>
                    <a href="/detection" target="contentFrame">
                        <i class="fas fa-object-group"></i>
                        图像单主体检测
                    </a>
                </li>
                <li>
                    <a href="/animal" target="contentFrame">
                        <i class="fas fa-paw"></i>
                        动物识别
                    </a>
                </li>
                <li>
                    <a href="/plant" target="contentFrame">
                        <i class="fas fa-leaf"></i>
                        植物识别
                    </a>
                </li>
                <li>
                    <a href="/logo" target="contentFrame">
                        <i class="fas fa-tag"></i>
                        Logo商标识别
                    </a>
                </li>
            </ul>
            <div class="sidebar-footer">
                <div style="color: rgba(255,255,255,0.7); padding-bottom: 15px; text-align: center;">
                    XX公司
                </div>
                <a href="/logout" class="logout-btn">
                    <i class="fas fa-sign-out-alt"></i>
                    退出登录
                </a>
            </div>
        </div>
        <div class="content">
            <iframe name="contentFrame" src="{{ url_for('main.welcome') }}"></iframe>
        </div>
    </div>
</body>
</html> 